var template_= `
<div class="setting">
    <el-divider><i class="el-icon-coin"></i>数据库操作【慎用！】</el-divider>
    
    <el-button type="primary" icon="el-icon-coin" @click="backsql">备份数据库</el-button>

    <el-divider><i class="el-icon-postcard"> 数据字典</i></el-divider>
    
</div>
`
// 
export default {
  name: 'user',
  data() {
    return {

    }
  },
  methods: {
    backsql(){
      axios.post('controller/setting.php?lx=backsql', {
        id:'',
      }).then((res) => {
        console.log("--res-",res)
        this.$message({
          message: res.data.message,
          type: res.data.code=='200'?'success':'warning',
        });
      });
    },
  },
  created(){},
  mounted(){
  
  }, 
  template:template_,
}

